home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / PASCAL / 0195.ZIP / SUCCESS.DOC < prev    next >
Text File  |  1984-12-20  |  8KB  |  224 lines

  1.         ||================================================================||
  2.         ||                                                                ||
  3.         ||   THIS IS N*O*T A DESCRIPTION OF THE FILES ON T*H*I*S DISK.    ||
  4.         ||   MR. TODD'S ROUTINES ARE AVAILABLE FOR $20. FROM THE ADDRESS  ||
  5.         ||   BELOW.  THERE IS A CERTAIN AMOUNT OF OVERLAP BETWEEN HIS     ||
  6.         ||   ROUTINES AND MINE, BUT ENOUGH DIFFERENCES TO MAKE IT WORTH   ||
  7.         ||   GETTING HIS DISK.                                            ||
  8.         ||                   Neil J. Rubenking                            ||
  9.         ||                                                                ||
  10.         ||================================================================||
  11.  
  12.  
  13.  
  14.         The Success Press          Box 2795  Des Plaines, Illinois 60018
  15.         ================================================================
  16.  
  17.  
  18.                     Procedures and Functions For Turbo Pascal
  19.  
  20.                                   Version 1.07
  21.  
  22.                           (C) Copyright 1984 W. E. Todd
  23.  
  24.  
  25.  
  26.                               - Batch Programming -
  27.  
  28.         Seterrlv         Allows  a  program  to  set  the  DOS errorlevel
  29.                          variable  upon  termination.  The errorlevel can
  30.                          be  tested  using the batch IF statement to find
  31.                          out   if   the   program   terminated  normally.
  32.                          Requires DOS 2.00 or later.
  33.  
  34.  
  35.                                - System Services -
  36.  
  37.         Cursrsiz.inc     Set the cursor size.
  38.  
  39.         Dosrelnm.inc     Gets  the DOS release number.  Requires DOS 2.00
  40.                          or later.
  41.  
  42.         Getdefdr.inc     Gets the letter of the default disk drive.
  43.  
  44.         Setdefdr.inc     Sets the default disk drive.
  45.  
  46.         Getdate.inc      Gets the system date.
  47.  
  48.         Setdate.inc      Sets the system date.
  49.  
  50.         Gettime.inc      Gets the system time.
  51.  
  52.         Settime.inc      Sets the system time.
  53.  
  54.         Setverfy.inc     Turns disk write verification on or off.
  55.  
  56.         Togglkey.inc     Turns    Insert,    Caps-Lock,    Num-Lock   and
  57.                          Scroll-Lock on or off.
  58.  
  59.         Numprntr.inc     Returns  the number of parallel printer ports on
  60.                          the system.
  61.  
  62.         NumRS232.inc     Returns  the number of RS232 serial ports on the
  63.                          system.
  64.  
  65.  
  66.                                   - Diskettes -
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.         Chngattr.inc     Sets  or clears the read only, hidden, system or
  81.                          archive attributes of a disk file.
  82.  
  83.         Diskdir.inc      Reads and writes the diskette directory.
  84.  
  85.         Diskspac.inc     Gets  the  amount  of  free space on a diskette. 
  86.                          Requires DOS 2.00 or later.
  87.  
  88.         Disktype.inc     Tells  if the diskette is single or double sided
  89.                          and 8 or 9 sectors per track.
  90.  
  91.         Chdir.inc        Change  the  current  directory.    Requires DOS
  92.                          2.00 or later.
  93.  
  94.         Mkdir.inc        Create  a  subdirectory.    Requires DOS 2.00 or
  95.                          later.
  96.  
  97.         Rmdir.inc        Remove  a  subdirectory.    Requires DOS 2.00 or
  98.                          later.
  99.  
  100.  
  101.                                 - Input/Output -
  102.  
  103.         Initcomm.inc     Initializes   an   RS-232  communications  port. 
  104.                          Similar to the OPEN COM statement in BASIC.
  105.  
  106.         Statcomm.inc     Returns  the communications port line status and
  107.                          modem status bits.
  108.  
  109.         Cmdparam.inc     Gets  the  parameters following the program name
  110.                          on  the  command  line,  converts  them to upper
  111.                          case  and  separates them into the elements of a
  112.                          string array.
  113.  
  114.         Dispmode.inc     Gets the current video display mode.
  115.  
  116.         Getscrch.inc     Gets   the   character  at  the  current  cursor
  117.                          position on the screen.
  118.  
  119.         Getscrat.inc     Gets  the attribute byte of the character at the
  120.                          current cursor position.
  121.  
  122.         Inkey.inc        Works  like  the  BASIC INKEY$ statement.  Waits
  123.                          for  a keyboard key to be struck and returns the
  124.                          corresponding  character  in  a  string.  If the
  125.                          key  has  a  two  byte  extended code a two byte
  126.                          string  is returned containing both bytes of the
  127.                          extended code.
  128.  
  129.         Inkeyclr.inc     Clears  the  keyboard buffer, waits for a key to
  130.                          be  struck  and returns the key in a string.  By
  131.                          clearing   the  keyboard  buffer  this  function
  132.                          forces  the  program  to  wait  for  a key to be
  133.                          struck after the function is executed.
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.         Readpixl.inc     In  graphics mode returns the value of the pixel
  148.                          at the specified location.
  149.  
  150.         Spc.inc          Returns  the  specified  number of spaces.  This
  151.                          can  be  used  like  the  BASIC  SPC function to
  152.                          insert spaces in an output record.
  153.  
  154.         Tab.inc          Tabs  to  the  specified  column when writing to
  155.                          the screen.
  156.  
  157.         Drawabox.inc     Draws  a box of any size on the screen.  You can
  158.                          specify  the  character(s)  to be used.  This is
  159.                          handy  for  outlining  windows or other text for
  160.                          emphasis.
  161.  
  162.         Textbord.inc     Sets the vidio display border color.
  163.  
  164.  
  165.                                    - Printer -
  166.  
  167.         Printscr.inc     Invokes   the  print  screen  function  just  as
  168.                          though you had typed Shift-PrtSc.
  169.  
  170.         Resetptr.inc     Resets  the printer using the BIOS printer reset
  171.                          routine.   This not only resets the printer, but
  172.                          if  the printer is off line it will be placed on
  173.                          line.
  174.  
  175.         Statptr.inc      Returns  the  printer  status word.  This allows
  176.                          you  to tell if the printer is on line or out of
  177.                          paper.
  178.  
  179.  
  180.                               - Bit Manipulation -
  181.  
  182.         Clr-bits.inc     Clears  any  string  of  consecutive  bits  in a
  183.                          word.
  184.  
  185.         Set-bits.inc     Sets any string of consecutive bits in a word.
  186.  
  187.         Ext-bits.inc     Extracts  any  string of consecutive bits from a
  188.                          word and returns their value as an integer.
  189.  
  190.         Ins-bits.inc     Inserts  the  string  of  bits  representing  an
  191.                          integer at any location in a word.
  192.  
  193.  
  194.                                     - Math -
  195.  
  196.         Dectohex.inc     Converts  an  integer  to  a  hex  string.   For
  197.                          example, 10 is converted to $000A.
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.         Hextodec.inc     Converts  a  one to four character hex string to
  213.                          an integer.  For example, $FFFF returns -1.
  214.  
  215.         Ipower.inc       Raises an integer to an integer power.
  216.  
  217.         Power.inc        Raises a real number to a real power.
  218.  
  219.         Cendate.inc      Provides  three  routines to do date arithmetic.
  220.                          One  converts  Gregorian date to day of century,
  221.                          another  converts  day  of  century to Gregorian
  222.                          date  and  the  third  determines the day of the
  223.                          week from day of century.
  224.